package com.ssm.dao;

import com.ssm.entity.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    Teacher selectByLogin(@Param("username") String username, @Param("password") String password);

    Integer insertOne(@Param("teacher") Teacher teacher);
    Integer updateOne(@Param("teacher") Teacher teacher);

    List<Teacher> select();
    Teacher  selectOne(@Param("goodsname") String goodsname, @Param("teacherid") Integer teacherid);
    Integer selectTotal(@Param("goodsname") String goodsname);
    Integer delete(@Param("teacherid")Integer teacherid );
}
